// var _api_root = "http://192.168.3.253:8080/"; //刘文杰
// var _api_root = "http://192.168.3.214:8080/"; //刘蕊
//var _api_root = "http://127.0.0.1:8080/";
var _api_root = "https://hi.lengjishan.cn/";
// var _api_root = "http://192.168.3.10:8080/";

var api = {
    user: {
        login: _api_root + "userInfo/wxLogin",
        isLogin: _api_root + "giveOrder/isLogin",
        info: _api_root + "userInfo/getUserInfo",
    },
    index: {
        banner: _api_root + "banner/selectBanner",
        product: _api_root + "ideaProduct/selectProductIdea",
        focus: _api_root + "activeArticle/activeArticleList",
        addParticipate: _api_root + "participate/addParticipate",
        giftList: _api_root + "ideaProduct/selectLoveProduct",
        card: _api_root + "card/selectIndexCard",
    },
    goods: {
        detail: _api_root + "ideaProduct/selectProductInformation",
        productTypeList: _api_root + "/ideaProduct/selectProductSpec", //查询商品规格
        productTypeDetail: _api_root + "/ideaProduct/selectProductBySpec", //查询商品规格
        selectCenterNum: _api_root + "/ideaProduct/selectCenterNum", //配送次数
        follow: _api_root + "participate/getMyFollow",
        followDetail: _api_root + "participate/getMyParticipate",
        orderList: _api_root + "order/selectList",
        orderDetail: _api_root + "order/selectDetail",
        confrim: _api_root + "order/updateOrder",
        cancelOrder: _api_root + "order/cancelOrder",
        refund: _api_root + "wxPay/refund",
        present: _api_root + "giveOrder/selectGiveOrderById",
    },
    article: {
        list: _api_root + "knowledgeAriticle/getKnowledgeAriticle",
        detail: _api_root + "knowledgeAriticle/getKnowledgeDetail",
    },
    card: {
        cardList: _api_root + "waterCard/getMyWaterCard",
        cardInfo: _api_root + "waterCard/getCardDetail",
        cardRecord: _api_root + "waterCard/getCardConsume",
        backCardInfo: _api_root + "waterCard/getCardRefundedDetail",
        backCardConfirm: _api_root + "waterCard/getCardRefunded",
        cardPay: _api_root + "wxPay/cardPay",
        cardUrl: _api_root + "card/selectCardById",
    },
    coupon: {
        list: _api_root + "coupon/selectList",
        default: _api_root + "coupon/selectDefaultCoupon",
    },
    address: {
        list: _api_root + "userInfo/userAddress",
        detail: _api_root + "userInfo/getAddressById",
        delete: _api_root + "userInfo/deleteAddress",
        save: _api_root + "userInfo/saveAddress",
        default: _api_root + "userInfo/userAddress",
        tagList: _api_root + "userInfo/getTagLibList",
        addTag: _api_root + "userInfo/addTagLib",
    },
    wxpay: {
        pay: _api_root + "wxPay/pay", //普通下单
        give: _api_root + "giveOrder/saveGiveOrder", //赠送下单
    },
    greeting: {
        cardList: _api_root + "card/selectCardList", //贺卡列表
        recordUpload: _api_root + "giveOrder/uploadSpeakFile", //上传语音祝福路径
        orderInfo: _api_root + "order/selectByOrderId", //赠送订单信息
        command: _api_root + "giveOrder/selectCommandByOrderId", //口令校验
        receive: _api_root + "giveOrder/saveAddressByOrderId", //领取礼物
    },
    follow: {
        getFollow: _api_root + "follow/getFollow", //获取亲友关系
        addFollow: _api_root + "follow/addFollow", //存储亲友荐邀请关系
        confirmFollow: _api_root + "follow/confirmFollow", //查询亲友荐邀请关系
        getSurprisePurchaseList: _api_root + "follow/getSurprisePurchaseList", //获取惊喜内购内容
        getOrderFollowList: _api_root + "follow/getOrderFollowList" //获取亲友下单记录
    },
    prize: {
        getPrizeList: _api_root + "coupon/luckDraw",
        enterPrize: _api_root + "userInfo/enterFor",
        toPrize: _api_root + "coupon/redPacket",
    },
    butler: {
        insertStatustics: _api_root + "waterDrop/insertStatustics", // 点击阅读水知识文章，订单生成
        getWaterDrop: _api_root + "waterDrop/getWaterDrop", // 查找水滴列表及水滴总数
        insertWaterDrop: _api_root + "waterDrop/insertWaterDrop", // 水滴任务领取
        updateUserWaterDrop: _api_root + "waterDrop/updateUserWaterDrop", // 点击水滴
        getWaterDropExchange: _api_root + "waterDrop/getWaterDropExchange", // 水滴兑换
        getWaterDropExchangeList: _api_root + "waterDrop/getWaterDropExchangeList", // 水滴兑换权益列表
    },
    picture: {
        uploadPic: _api_root + "automation/upload",
    }

};

module.exports = api;